﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Yeetop.PayHub.YeePay
{
    /// <summary>
    /// 易宝支付(yeepay.com)交易信息
    /// </summary>
    public class YeePayTradeInfo : ITradeInfo
    {
        public PayPlatformType PayPlatform
        {
            get { return PayPlatformType.YeePay; }
        }

        /// <summary>
        /// 商户订单号
        /// </summary>
        public string p2_Order { get; set; }

        /// <summary>
        /// 支付金额
        /// </summary>
        public string p3_Amt { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string p5_Pid { get; set; }

        /// <summary>
        /// 商品种类
        /// </summary>
        public string p6_Pcat { get; set; }

        /// <summary>
        /// 商品描述
        /// </summary>
        public string p7_Pdesc { get; set; }

        /// <summary>
        /// 商户接收支付成功数据的地址
        /// </summary>
        public string p8_Url { get; set; }

        /// <summary>
        /// 送货地址，为“1”: 需要用户将送货地址留在易宝支付系统;为“0”: 不需要，默认为 ”0”.
        /// </summary>
        public string p9_SAF { get; set; }

        /// <summary>
        /// 商户扩展信息
        /// </summary>
        public string pa_MP { get; set; }

        /// <summary>
        /// 支付通道编码
        /// </summary>
        public string pd_FrpId { get; set; }

        /// <summary>
        /// 应答机制
        /// </summary>
        public string pr_NeedResponse { get; set; }

        /// <summary>
        /// 签名数据
        /// </summary>
        public string hmac { get; set; }
    }
}
